<template>
  <div class="box">
    <!-- 头部 -->
    <div class="header">
      <Header></Header>
    </div>
    <!-- 主体 -->
    <div class="main">
      <router-view></router-view>
    </div>
    <!-- 尾部 -->
    <div class="footer">
      <Footer></Footer>
    </div>
  </div>
</template>
  
<script setup lang='ts'>
import Header from "../../components/Header.vue";
import Footer from "../../components/Footer.vue";
import { ref } from "vue";
</script>
  
  <style  lang="scss">
.box {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.header {
  width: 100%;
  height: 70px;
  padding: 10px;
}

.main {
  flex: 1;
  overflow-y: scroll;
  padding: 10px;
}
.footer {
  height: 50px;
  border-top: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}
</style>
  